from exp_data import EXP_DATA

f = open("hv_result.log", "r")
o = open("hv_result_all.log", 'w')

for i in f:
    if len(i) > 1:
        a = i.split()[1]
        rms = (float(i.split()[2]) - EXP_DATA[a][4]) / EXP_DATA[a][4]
        abs_rms = abs(rms)
        o.write("%20s%20s%10.3f%10.3f%10.3f%10.3f\n"%(EXP_DATA[a][0], a, float(i.split()[2]), EXP_DATA[a][4], rms, abs_rms))

o.close()
f.close()
